/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="CHVALORES")
public class CHValoresProteu implements Serializable{

    @Id
    @Column(name="CHV_ST_CODIGO")
    private String chvStCodigo;
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Column(name="CHV_ST_DESCRICAO")
    private String chvStDescricao;
    @Column(name="CHV_DT_INICIAL")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date chvDtInicial;
    @Column(name="CHV_DT_FINAL")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date chvDtFinal;
    @Column(name="CHV_FL_VALOR")
    private Float chvFlValor;
    @Column(name="CHV_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date chvDtAlteracao;
    @Column(name="CHV_ST_USUARIO")
    private String chvStUsuario;


    public Date getChvDtAlteracao() {
        return chvDtAlteracao;
    }

    public void setChvDtAlteracao(Date chvDtAlteracao) {
        this.chvDtAlteracao = chvDtAlteracao;
    }

    public Date getChvDtFinal() {
        return chvDtFinal;
    }

    public void setChvDtFinal(Date chvDtFinal) {
        this.chvDtFinal = chvDtFinal;
    }

    public Date getChvDtInicial() {
        return chvDtInicial;
    }

    public void setChvDtInicial(Date chvDtInicial) {
        this.chvDtInicial = chvDtInicial;
    }

    public Float getChvFlValor() {
        return chvFlValor;
    }

    public void setChvFlValor(Float chvFlValor) {
        this.chvFlValor = chvFlValor;
    }

    public String getChvStCodigo() {
        return chvStCodigo;
    }

    public void setChvStCodigo(String chvStCodigo) {
        this.chvStCodigo = chvStCodigo;
    }

    public String getChvStDescricao() {
        return chvStDescricao;
    }

    public void setChvStDescricao(String chvStDescricao) {
        this.chvStDescricao = chvStDescricao;
    }

    public String getChvStUsuario() {
        return chvStUsuario;
    }

    public void setChvStUsuario(String chvStUsuario) {
        this.chvStUsuario = chvStUsuario;
    }

    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CHValoresProteu other = (CHValoresProteu) obj;
        if ((this.chvStCodigo == null) ? (other.chvStCodigo != null) : !this.chvStCodigo.equals(other.chvStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.chvStCodigo != null ? this.chvStCodigo.hashCode() : 0);
        return hash;
    }

    

}
